const express = require('express')
const router = express.Router()
// 用户表控制器
const userController = require('../controllers/userController.js')

// 会员列表
router.post('/userList', userController.userList)

// 会员详情
router.get('/userDetail', userController.userDetail)

// 删除会员
router.delete('/deleteUser', userController.deleteUser)

// 添加会员
router.post('/addUser', userController.addUser)

// 添加标签
router.get('/addLabel', userController.addLabel)

// 会员分析
router.get('/memberAnalysis', userController.memberAnalysis)

module.exports = router
